package javaVersion.learn.batchProcess;

import org.apache.flink.api.java.ExecutionEnvironment;
import org.apache.flink.api.java.operators.DataSource;
import org.apache.flink.configuration.Configuration;

/**
 * @author Wincoma
 * @date 2020/7/15 15:04
 * @description
 */
public class Pro1_ForDir {
    public static void main(String[] args) throws Exception {
        ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
        Configuration conf = new Configuration();
        //开启递归
        conf.setBoolean("recursive.file.enumeration", true);
        DataSource<String> file = env.readTextFile("F:\\test")
                .withParameters(conf);
        file.print();

    }
}
